﻿using NewsPortal.DataAccess.Abstraction;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace NewsPortal.Domain.PostEntities
{
    public class PostCategory: IEntity
    {
        public int Id { get; set; }
        //[Index(name:"IX_TITLE_UNIQUE", IsUnique=true)]
        public string Title { get; set; }
        public string Description { get; set; }
        public DateTime Date { get; set; }
        public ICollection<Post> Posts { get; set; }
    }
}
